﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp4
{
    class MyCompare:IComparer
        {
        public int Compare(object x, object y)
        {
            var str1 = x.ToString();
            var str2 = y.ToString();
            return str1.CompareTo(str2);
        }
    
    }
}
